<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "calendar".
 *
 * @property int $id
 * @property string $data_name
 * @property string $date_content
 * @property string $date_value
 * @property int $create_time
 */
class Calendar extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'calendar';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['data_name', 'date_content', 'date_value', 'create_time'], 'required'],
            [['create_time'], 'integer'],
            [['data_name', 'date_value'], 'string', 'max' => 32],
            [['date_content'], 'string', 'max' => 512],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'data_name' => 'Data Name',
            'date_content' => 'Date Content',
            'date_value' => 'Date Value',
            'create_time' => 'Create Time',
        ];
    }
}
